<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		.box {
			width: 200px;
			height: 120px;
			border: 1px solid black;
			margin: 10px;
			float: left;
		}

		.box1 {
			/* 默认情况 */
			background-image: radial-gradient(red, yellow, green);
		}

		.box2 {
			/* 关键字设置中心位置 */
			background-image: radial-gradient(at left top, red, yellow, green);
		}

		.box3 {
			/* 像素值设置中心位置 */
			background-image: radial-gradient(at 50px 100px, red, yellow, green);
		}

		.box4 {
			/* 关键字circle设置为正圆 */
			background-image: radial-gradient(circle, red, yellow, green);
		}

		.box5 {
			/* 像素值调整为正圆 */
			background-image: radial-gradient(100px 100px, red, yellow, green);
		}

		.box6 {
			/* 像素值调整渐变区域 */
			background-image: radial-gradient(red 20px, yellow 50px, green 100px);
		}

		.box7 {
			/* 综合写法 */
			background-image: radial-gradient(100px 100px at 50px 100px, red, yellow, green);
		}
	</style>
</head>
<body>
	<div class="box box1"></div>
	<div class="box box2"></div>
	<div class="box box3"></div>
	<div class="box box4"></div>
	<div class="box box5"></div>
	<div class="box box6"></div>
	<div class="box box7"></div>
</body>
</html>